package com.nbsaas.boot.product.ext.apis;

import com.nbsaas.boot.product.api.domain.request.ProductRequest;
import com.nbsaas.boot.product.api.domain.response.ProductResponse;
import com.nbsaas.boot.product.ext.domain.request.ProductExtRequest;
import com.nbsaas.boot.product.ext.domain.response.ProductExtResponse;
import com.nbsaas.boot.rest.response.ResponseObject;

public interface ProductExtApi {

    /**
     * 创建商品
     *
     * @param request
     * @return
     */
    ResponseObject<ProductResponse> create(ProductExtRequest request);


    /**
     * 更新商品
     *
     * @param request
     * @return
     */
    ResponseObject<ProductResponse> update(ProductExtRequest request);

    /**
     * 查看商品详情
     *
     * @param request
     * @return
     */
    ResponseObject<ProductExtResponse> view(ProductRequest request);

}
